import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';

import set_node_cls from "@dfeidao/atom-web/ui/set-node-cls";
export default async function a007(fd: IFeidaoAiBrowserComponent) {
	// todo
	// console.log("val=====>", check);
	const id = get(fd, 'id');
	const flag = get(fd, 'flag') as string;
	if (flag === '1') {

		console.log("撒大声地1==》", id);
		fire("zj-000003", "a005", id);
	} else if (flag === '2') {
		console.log("撒大声地2==》", id);
		fire("zj-000004", "a004", id);
	}

	// 显示隐患元添加弹出框
	const d = fd.data.node.querySelector<HTMLDivElement>('[data-name="yhadd"]');
	set_node_cls(d, 'display-n', true);
}
